package edu.its.dreamteam.web.state;

import java.io.Serializable;

import edu.its.dreamteam.daf.beans.Manager;


@SuppressWarnings("serial")
public class Visit implements Serializable {
	
	// The logged in user
	private boolean loggedIn = false;
	private String username = null;
	private String password = null;
	
	public void noteLogIn(Manager user) {
		loggedIn = true;
		username = user.getUsername();
		password = user.getPassword();
	}

	public void noteLogOut() {
		loggedIn = false;
		username = null;
		password = null;
	}

	public boolean isLoggedIn() {
		return loggedIn;
	}

	public String getUsername() {
		return username;
	}

	public String getPassword() {
		return password;
	}
}